package com.heima.wemedia.listener;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.heima.model.wemedia.pojos.WmSensitive;
import com.heima.wemedia.service.WmSensitiveService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.BeanUtils;

import java.util.ArrayList;
import java.util.List;


public class SensitiveReadListener extends AnalysisEventListener<SensitiveEmployee> {

    private List<SensitiveEmployee> employees = new ArrayList<>();

    @Override
    public void invoke(SensitiveEmployee sensitiveEmployee, AnalysisContext analysisContext) {
        employees.add(sensitiveEmployee);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {


    }

    public List<SensitiveEmployee> getEmployees() {
        return employees;
    }
}